package pri.hillchen.springbootstd.bms.entity.system;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author hillchen
 * @since 2017-10-19
 */
@TableName("sys_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
	private Long id;
    /**
     * 可用标志(0:禁用,1可用)
     */
	@TableField("is_available")
	private Integer isAvailable;
    /**
     * 用户登录账号
     */
	private String account;
    /**
     * 登录密码
     */
	private String password;
    /**
     * 用户昵称
     */
	private String nick;
    /**
     * 用户邮箱
     */
	private String email;
    /**
     * 用户手机号码
     */
	private String phone;
    /**
     * 性别(0:女,1男)
     */
	private Integer sex;
    /**
     * 生日
     */
	private Date birthday;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getIsAvailable() {
		return isAvailable;
	}

	public void setIsAvailable(Integer isAvailable) {
		this.isAvailable = isAvailable;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "User{" +
			"id=" + id +
			", isAvailable=" + isAvailable +
			", account=" + account +
			", password=" + password +
			", nick=" + nick +
			", email=" + email +
			", phone=" + phone +
			", sex=" + sex +
			", birthday=" + birthday +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
